package de.clapp.menucard;

import java.util.ArrayList;
import java.util.HashMap;

import android.content.Loader;
import android.os.Bundle;
import de.clapp.BaseModel;
import de.clapp.data.Artikel;

public class MenucardModel extends BaseModel<HashMap<String, ArrayList<Artikel>>>
{
    // Singleton-Pattern
    private static final MenucardModel instance = new MenucardModel();
    public static MenucardModel getInstance() { return instance; }

    @Override
    public Loader<HashMap<String, ArrayList<Artikel>>> onCreateLoader(int id, Bundle args)
    {
        return new MenucardLoader(activity);
    }

    public void flushData()
    {
        this.modelData = null;
    }
}
